#include "Polarization.h"
#include "util.h"

using namespace std;

int main(int /*argc*/, char** /*argv*/)
{

    std::string DataBase_path="/home/wya/Project/Dataset/Database/polarized/all_sequences";
    std::string DataSave_path="/home/wya/Project/Dataset/Database/polarized/pImgSave";



    Polarization::polarizedSave P{};
     //进行平场校正后不能修改曝光和增益，固定为200000.0
    P.Exposure_value=200000.0;//if value=0 will turn automatic exposure back on
    P.gain=0.0;

    P.polarizedSave::polarized_save(DataBase_path,DataSave_path,Polarization::SingleFrame);
    CopyDireWithTimestamp(DataSave_path,DataBase_path,P);

//    std::string DataSave_path="/home/wya/Project/Dataset/FFC";
//    Polarization::FFC ffc;
//    ffc.FlatfieldCalib(DataSave_path);



}